<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ include file="/include/taglibs.jsp" %>
<html>
<head>
    <%@include file="/include/header.html" %>
    <script type="text/javascript" src="${ctx}/appjs/msg/tenantReceive.js"></script>
    <link rel="stylesheet" href="${ctx}/statics/css/update.css">
    <link rel="stylesheet" href="${ctx}/statics/css/common.css">
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.css">
    <script src="${ctx}/libjs/plugins/bootstrap-table-pagejump/bootstrap-table-pagejump.js"></script>
    <%--<link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/skins/laydate.css">--%>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/laydate/laydate.css">
    <script src="${ctx}/libjs/plugins/laydate/laydate.js"></script>
    <link rel="stylesheet" href="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.css">
    <script src="${ctx}/libjs/plugins/bootStrap-table-fixed-column/bootstrap-table-fixed-columns.js"></script>
    <style>
        .bootstrap-table .fixed-table-container .table thead th .th-inner {
            text-align: center !important;
        }
    </style>
</head>

<script type="text/javascript">
    $('#topLink', window.parent.document).html(function (i, origText) {
        return'<ol class="breadcrumb">' +
            '<li class="breadcrumb-item">' +
            '<a href="">主页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<a>首页</a>' +
            '</li>' +
            '<li class="breadcrumb-item">' +
            '<strong>平台通知</strong>' +
            '</li>' +
            '</ol>';
    });

    var has_add = '';
    var has_edit = '';
    var has_delete = '';
</script>

<body class="gray-bg">
<div class="wrapper wrapper-content">
    <div class="col-sm-12">
        <div class="ibox">
            <div class="ibox-body">
                <div class="row">
                        <input id="title" name="title" type="text" class="form-control shortInput"
                               placeholder="消息标题">
<%--                    <div class="pull-left search col-md-1 msbox">--%>
                        <input id="startTime" name="startTime" type="text" class="form-control shortInput input-distance temporary_style "
                               placeholder="发送开始时间" autocomplete="false">
<%--                    </div>--%>
<%--                    <div class="pull-left search col-md-1 nsbox">--%>
                        <input id="endTime" name="endTime" type="text" class="form-control shortInput input-distance"
                               placeholder="发送结束时间" autocomplete="false">
<%--                    </div>--%>
                        <select id="status" name="status" class="form-control shortInput input-distance">
                            <option value="">全部</option>
                            <option value="1">已读</option>
                            <option value="0">未读</option>
<%--                            <option value="2">小程序</option>--%>
                        </select>
<%--                        <input id="mobile" name="mobile" type="text" class="form-control shortInput input-distance"--%>
<%--                               placeholder="手机号">--%>
<%--                        <input id="keyword" name="keyword" type="text" class="form-control shortInput input-distance"--%>
<%--                               placeholder="关键字">--%>
                        <button class="btn btn-success input-distance" onclick="tenantReceive.reLoad()">查询</button>
                </div>
                <table id="exampleTable" data-mobile-responsive="true">
                </table>
            </div>
        </div>
    </div>
</div>

<script type="text/javascript">
    layui.use('laydate', function () {
        var laydate = layui.laydate;
        var startTime = laydate.render({
            elem: '#startTime',
            type: 'datetime',
            format: 'yyyy-MM-dd',
            trigger: 'click',
            done: function (value, dates) {
                endTime.config.min = {
                    year: dates.year,
                    month: dates.month - 1, //关键
                    date: dates.date,
                    hours: 0,
                    minutes: 0,
                    seconds: 0
                };
            }
        });
        var endTime = laydate.render({
            elem: '#endTime',
            type: 'datetime',
            format: 'yyyy-MM-dd',
            trigger: 'click'
        });

    });

    // $('#startTime').prop("border-color",'#fff');
    tenantReceive.init();
</script>
</body>
</html>